Component({
  data: {
    color: "#929292",
    selectedColor: "#69C3AA",
    backgroundColor: "#ffffff",
    list: [
      {
        pagePath: "/pages/data/data",
        text: "数据",
        iconPath: "/image/data_false.png",
        selectedIconPath: "/image/data_true.png"
      },  
      {
        pagePath: "/pages/devConn/devConn",
        bulge:true,
        iconPath: "/image/devConn_false.png",
        selectedIconPath: "/image/devConn_true.png"
      },
      {
        pagePath: "/pages/userCenter/userCenter",
        text: " 个人中心",
        iconPath: "/image/userCenter_false.png",
        selectedIconPath: "/image/userCenter_true.png"
      }
    ]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({url}) 
    }
  }
})